<script setup lang='ts'>
import {loginApi} from '@/apis/user'
import { request } from '@/utils/request';
const login = async () => {
  const res = await loginApi({
    mobile: '13211112222',
    password: 'abc12345'
  })
  console.log(res);
  
}
const getUserInfo = async () =>{
  await request.get('/patient/myUser')
}

</script>

<template>
  <view>
    <button @click="login">测试</button>
    <button @click="getUserInfo">获取用户信息</button>
  </view>
</template>

<style scoped></style>